]> dgit.raspbian.org Git - gnome-shell.git/commit
signalTracker: Avoid creating a temporary keys array when clearing
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Wed, 6 Jul 2022 15:47:14 +0000 (17:47 +0200)
committerMarco Trevisan (Treviño) <mail@3v1n0.net>
Wed, 6 Jul 2022 16:24:08 +0000 (18:24 +0200)
commit74720f250e51f9f7ae65b9be18cfde53b7103ae9
tree7bf020cfbadcd280d8aed98657143e5dad3774b8
parent68ceed5c281a8931a1c45f170361a471312d0666
signalTracker: Avoid creating a temporary keys array when clearing

We used to create a temporary array of signal tracker keys and then to
iterate through them in order to untrack the objects, but the Map's can
be iterated directly so let's just use their native forEach.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2366>
js/misc/signalTracker.js